﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;

namespace OpenESSOConfigurator.BusinessLayer.Atoms
{
    [Serializable]
    public class SpecialChar
    {
        private bool _allow;
        private bool _mustStart;
        private bool _checkMin;
        private int _minValue;
        private bool _checkMax;
        private int _maxValue;

        private bool _onlyChar;
        private String _onlyCharValue;

        private bool _excludedChar;
        private String _excludedCharValue;

        [XmlAttribute("allow")]
        public bool Allow
        {
            get { return _allow; }
            set { _allow = value; }
        }
        [XmlAttribute("mustStart")]
        public bool MustStart
        {
            get { return _mustStart; }
            set { _mustStart = value; }
        }
        [XmlAttribute("checkMin")]
        public bool CheckMin
        {
            get { return _checkMin; }
            set { _checkMin = value; }
        }
        [XmlAttribute("minValue")]
        public int MinValue
        {
            get { return _minValue; }
            set { _minValue = value; }
        }
        [XmlAttribute("checkMax")]
        public bool CheckMax
        {
            get { return _checkMax; }
            set { _checkMax = value; }
        }
        [XmlAttribute("maxValue")]
        public int MaxValue
        {
            get { return _maxValue; }
            set { _maxValue = value; }
        }
        [XmlAttribute("onlyChar")]
        public bool OnlyChar
        {
            get { return _onlyChar; }
            set { _onlyChar = value; }
        }
        [XmlAttribute("onlyCharValue")]
        public String OnlyCharValue
        {
            get { return _onlyCharValue; }
            set { _onlyCharValue = value; }
        }
        [XmlAttribute("excludedChar")]
        public bool ExcludedChar
        {
            get { return _excludedChar; }
            set { _excludedChar = value; }
        }
        [XmlAttribute("excludedCharValue")]
        public String ExcludedCharValue
        {
            get { return _excludedCharValue; }
            set { _excludedCharValue = value; }
        }
    }
}
